package com.ccp.dev.system.model;

import com.ccp.dev.core.basic.api.ISysJobLog;
import com.ccp.dev.core.basic.model.BaseModel;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * 对象功能:SYS_JOBLOG Model对象
 * @author:phl
 * 创建时间:2011-12-29 10:25:22
 */
public class SysJobLog extends BaseModel implements ISysJobLog
{
	/**
	 * logId
	 */
	protected String logId;
	/**
	 * jobName
 	 */
	protected String jobName;
	/**
	 * trigName
 	 */
	protected String trigName;
	/**
	 * startTime
 	 */
	protected java.util.Date startTime;
	/**
	 * endTime
 	 */
	protected java.util.Date endTime;
	/**
	 * content
 	 */
	protected String content;
	/**
	 * state
 	 */
	protected int state;
	/**
	 * runTime
 	 */
	protected Long runTime;

	@Override
	public String getLogId() {
		return logId;
	}

	@Override
	public void setLogId(String logId) {
		this.logId = logId;
	}

	@Override
	public void setJobName(String jobName)
	{
		this.jobName = jobName;
	}
	/**
	 * 返回 jobName
	 * @return
	 */
	@Override
	public String getJobName()
	{
		return jobName;
	}
	@Override
	public void setTrigName(String trigName) 
	{
		this.trigName = trigName;
	}
	/**
	 * 返回 trigName
	 * @return
	 */
	@Override
	public String getTrigName() 
	{
		return trigName;
	}
	@Override
	public void setStartTime(java.util.Date startTime) 
	{
		this.startTime = startTime;
	}
	/**
	 * 返回 startTime
	 * @return
	 */
	@Override
	public java.util.Date getStartTime()
	{
		return startTime;
	}
	@Override
	public void setEndTime(java.util.Date endTime) 
	{
		this.endTime = endTime;
	}
	/**
	 * 返回 endTime
	 * @return
	 */
	@Override
	public java.util.Date getEndTime()
	{
		return endTime;
	}

	@Override
	public void setContent(String content)
	{
		this.content = content;
	}
	/**
	 * 返回 content
	 * @return
	 */
	@Override
	public String getContent()
	{
		return content;
	}

	@Override
	public void setState(int state)
	{
		this.state = state;
	}
	/**
	 * 返回 state
	 * @return
	 */
	@Override
	public int getState()
	{
		return state;
	}

	@Override
	public void setRunTime(Long runTime)
	{
		this.runTime = runTime;
	}
	/**
	 * 返回 runTime
	 * @return
	 */
	@Override
	public Long getRunTime() 
	{
		return runTime;
	}

   
   	/**
	 * @see Object#equals(Object)
	 */
   	@Override
	public boolean equals(Object object)
	{
		if (!(object instanceof SysJobLog))
		{
			return false;
		}
		SysJobLog rhs = (SysJobLog) object;
		return new EqualsBuilder()
		.append(this.logId, rhs.logId)
		.append(this.jobName, rhs.jobName)
		.append(this.trigName, rhs.trigName)
		.append(this.startTime, rhs.startTime)
		.append(this.endTime, rhs.endTime)
		.append(this.content, rhs.content)
		.append(this.state, rhs.state)
		.append(this.runTime, rhs.runTime)
		.isEquals();
	}

	/**
	 * @see Object#hashCode()
	 */
	@Override
	public int hashCode()
	{
		return new HashCodeBuilder(-82280557, -700257973)
		.append(this.logId)
		.append(this.jobName)
		.append(this.trigName)
		.append(this.startTime)
		.append(this.endTime)
		.append(this.content)
		.append(this.state)
		.append(this.runTime)
		.toHashCode();
	}

	/**
	 * @see Object#toString()
	 */
	@Override
	public String toString() 
	{
		return new ToStringBuilder(this)
		.append("logId", this.logId) 
		.append("jobName", this.jobName) 
		.append("trigName", this.trigName) 
		.append("startTime", this.startTime) 
		.append("endTime", this.endTime) 
		.append("content", this.content) 
		.append("state", this.state) 
		.append("runTime", this.runTime) 
		.toString();
	}
   
  

}